#include "mainwindow.h"

#include <QApplication>
#include <QDebug>
//#include "ffmpegutils.h"

//#ifdef Q_OS_WIN
//    #define INFILENAME  "../test/out_640x480.yuv"
//    #define OUTFILENAME "../test/out.rgb"
//#else
//    #define INFILENAME "/Users/zuojie/QtProjects/audio-video-dev/test/out_640x480.yuv"
//    #define OUTFILENAME "/Users/zuojie/QtProjects/audio-video-dev/test/out.rgb"
//#endif

int main(int argc, char *argv[]){

//    RawVideoFile in = {
//        INFILENAME,
//        640, 480, AV_PIX_FMT_YUV420P
//    };
//    RawVideoFile out = {
//        OUTFILENAME,
//        640, 480, AV_PIX_FMT_RGB24
//    };
//    FFmpegUtils::convertRawVideo(in, out);

    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    int ret = a.exec();

   return ret;
}
